package cn.tedu.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * @author Kiven
 */
@Data
public class WxUserinfoDTO  implements Serializable {
    @NotNull(message = "openid不能为空")
    @ApiModelProperty(value = "openid",required = true)
    private String openid;

    @NotNull(message = "昵称不能为空")
    @ApiModelProperty(value = "昵称",required = true)
    @Pattern(regexp = ".{2,16}", message =  "昵称必须是2-16个字符")
    private String nickname;



    private Integer sex;
    private String language;
    private String city;
    private String province;
    private String country;
    private String headimgurl;
    private String privilege;


}
